let str = '<a href="https://www.atguigu.com">尚硅谷</a>';
const reg = /<a href="(.*)">(.*)<\/a>/;
const result=reg.exec(str);
console.log(result)
console.log(result[1]);
console.log(result[2])
const reg1 = /<a href="(?<url>.*)">(?<text>.*)<\/a>/;
const result1=reg1.exec(str)
console.log(result1.groups)
